import request from '@/utils/request'

// 查询大赛申报列表
export function listBm(query) {
  return request({
    url: '/business/skillbm/list',
    method: 'get',
    params: query
  })
}

// 查询大赛申报详细
export function getBm(id) {
  return request({
    url: '/business/skillbm/' + id,
    method: 'get'
  })
}

// 新增大赛申报
export function addBm(data) {
  return request({
    url: '/business/skillbm',
    method: 'post',
    data: data
  })
}

// 修改大赛申报
export function updateBm(data) {
  return request({
    url: '/business/skillbm',
    method: 'put',
    data: data
  })
}

// 删除大赛申报
export function delBm(id) {
  return request({
    url: '/business/skillbm/' + id,
    method: 'delete'
  })
}

export function check(data) {
  return request({
    url: '/business/skillbm/check',
    method: 'put',
    data: data
  })
}

export function addScoreGreateNO(data) {
  return request({
    url: '/webApi/addScoreGreateNO',
    method: 'post',
    data: data
  })
}

export function generateCertificate(data) {
  return request({
    url: '/webApi/generate-certificate',
    method: 'post',
    data: data
  })
}

export function downloadCertificate(data) {
  return request({
    url: '/webApi/downloadCertificate',
    method: 'post',
    data: data
  })
}


export function addWebbm(data) {
  return request({
    url: '/webApi',
    method: 'post',
    data: data
  })
}

export function updateWbBm(data) {
  return request({
    url: '/webApi/updateWbBm',
    method: 'post',
    data: data
  })
}

export function updateWbBmEdit(data) {
  return request({
    url: '/webApi/updateWbBmEdit',
    method: 'post',
    data: data
  })
}








